package objects;

import graphics.Drawing;
import graphics.MaxGraphics;

import java.awt.Shape;
import java.awt.image.BufferedImage;

import structure.SObject;
import util.Point;

public class Nebula extends SObject {
	private Shape[] nebula;
	private BufferedImage im[];
	
	
	public Nebula(Point p, Shape[] s) {
		super(p);
		im = new BufferedImage[s.length];
		nebula = s;
		for(int i = 0; i < im.length; i++) {
			im[i] = new BufferedImage((int) s[i].getBounds().getWidth(), (int) s[i].getBounds().getHeight(), BufferedImage.TYPE_3BYTE_BGR);
			
		}

	}

	@Override
	public double getMass() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void draw(MaxGraphics g) {
		
		int[] color = { 1, 0, 0};
		Drawing.drawNebula(g, nebula, color);
		
	}

	@Override
	public void collide(SObject s) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Shape[] getShape() {
		// TODO Auto-generated method stub
		return nebula;
	}

	@Override
	public double getRadius() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}
	
	
}
